import _fetch from '../request'

// 根据关键字搜索
function search (params) {
  return _fetch({
    url: 'v1_0/search',
    needToken: true,
    params
  })
}

function suggestion (params) {
  return _fetch({
    url: 'v1_0/suggestion',
    params
  })
}
export { search, suggestion }
